package com.hdl.commons;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSON;


public class JsonUtil {

	private JsonUtil(){}
	
	public static void out(Object obj,HttpServletResponse response) throws IOException{
		response.setContentType("text/json;charset=UTF-8");
		response.getWriter().print(JSON.toJSONString(obj));
		response.flushBuffer();
	}
}
